<!DOCTYPE html>
<html>
<head th:include="cultivateWeb/header :: culHeaderCss">
</head>
<link type="text/css" href="/css/cultivateWeb/style/news.css" rel="stylesheet">
<body>
<!-- 顶部导航 -->
<header th:include="cultivateWeb/header :: header"></header>
<style>
    .p4 {
        font-size: 16px
    }
   table > thead > tr > th, table > tbody > tr > th, table > tfoot > tr > th, table > thead > tr > td, table > tbody > tr > td, table > tfoot > tr > td {
        border: 1px solid #999;
        line-height: 1.42857;
        padding: 8px;
        vertical-align: middle;
    }

    table {
        width: 100%;
    }
</style>
<div style="clear: both"></div>
<div style="background-color: #f7f7f7; ">
    <div style="height: 40px">
        <p style="margin: 0px auto auto 380px; line-height: 40px">当前位置：<a href="/cultivate/homepage">首页</a> > <a
                class="hySpan" href="#" id="news"></a> > 详情</p>
    </div>
    <div class="newsIfo" style="padding: 20px 0">
        <input type="hidden" th:value="${name}" id="name"/>
        <p class="p" style="padding: 20px 10px;font-size:30px;text-align: center;margin:40px 0 20px 0"
           th:text="${con.title}"></p>
        <p style="text-align: center;color: #444;"
           th:text="时间：+${#dates.format(con.createrDate,'yyyy-MM-dd HH:mm')}"></p>
        <div class="p4" style="padding:0 10px;" th:utext="${con.contents}"></div>
    </div>
</div>
<!-- footer ------------------------------------------------------- -->
<div class="footer" th:include="cultivateWeb/header :: footer"></div>
</body>
<script>
    $(function () {
        $("#news").html($("#name").val());
        if ($("#name").val() == "行业信息" || $("#name").val() == "政策信息") {
            $(".hySpan").attr("href", "/cultivate/news?name=行业信息")
        }
        if ($("#name").val() == "通知公告") {
            $(".hySpan").attr("href", "/cultivate/news?name=通知公告")
        }
        if ($("#name").val() == "创业明星" || $("#name").val() == "创业加盟") {
            $(".hySpan").attr("href", "/cultivate/startUpBus")
        }

    })
</script>
</html>